<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{
    width : 200px;
    height : 200px;
    background-color : pink;
}
</style>
</head>
<body>
<div id="box"></div>
<script>
box.onmousedown = function (){
    console.log("你按下了鼠标键");
}
box.onmousemove = function (){
    console.log("你在疯狂的移动鼠标");
}
box.onmouseup = function (){
    console.log("你抬起了鼠标");
}
</script>
</body>
</html>